package com.situ.vivamarket.service;

import com.github.pagehelper.Page;
import com.situ.vivamarket.model.Admin;
import com.situ.vivamarket.model.Member;
import com.situ.vivamarket.model.search.AdminSearchBean;

import java.util.List;

public interface AdminService {
    List<Admin> getAllAdmins(AdminSearchBean asb, Page<?> p);

    int deleteByIds(Integer[] ids);

    boolean add(Admin admin);

    Admin findById(Integer id);

    Admin findByName(String name);

    boolean update(Admin admin);

    boolean patch(Admin admin);
}
